package com.cn.ant.modules.wechat.dao;

import com.cn.ant.common.persistence.MyBatisRepository;
import com.cn.ant.modules.wechat.entity.MenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 菜单对象Mapper接口
 * @author AntDream
 * @version 2015-03-23
 */
@MyBatisRepository
public interface MenuEntityMapper{

    public int delete(String id);

    public int deleteByAccountId(@Param("accountId") String accountId);

    public int insert(MenuEntity record);

    public int batchInsert(List<MenuEntity> list);

    public MenuEntity get(String id);

    public int update(MenuEntity record);

    public List<MenuEntity> query(Map<String,Object> param);

    public MenuEntity findByMenuKey(@Param("menuKey") String menuKey);

    public List<MenuEntity> queryByAccountId(@Param("accountId") String accountId);

}
